package cn.jhc.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class RegisterServlet
 */
@WebServlet("/upload.do")
public class RegisterServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       


	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        	String uname = request.getParameter("username");
        	String password = request.getParameter("pwd");
        	String sex = request.getParameter("sex");
        	String filename = request.getParameter("file");
        	String[] interests = request.getParameterValues("interests");
        	System.out.println("username"+ uname);
        	for (String string : interests) {
        		System.out.println(string);
        	}
	}

}
